package com.java.struts.comment.action;

import com.java.struts.base.action.BaseAction;
import com.java.struts.comment.eneity.FoodcommentinfoEntity;
import com.java.struts.comment.service.CommentService;
import org.apache.struts2.convention.annotation.Action;

import java.util.List;

public class CommentAction extends BaseAction {

    private CommentService commentService=new CommentService();

    @Action(value="listComment")
    public String queryMenu(){
        List<FoodcommentinfoEntity> comment = commentService.getComment();
        setSuccessResult(comment);
        return "json";
    }


}
